 # JSON数据传递

from flask import Flask, jsonify

from day14_flask.person import Person

app=Flask(__name__)

@app.route('/index')
def index():

    p=Person("宋江",32)

    return jsonify(p.__dict__)

app.run()